﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Reflection;
using Pixysoft.Weblications.Sango.Dao;
using Pixysoft.Weblications.Sango.Protocol;
using Pixysoft.Weblications.Sango.Protocol.pve;
using Pixysoft.Weblications.Sango.Battle;
using Pixysoft.Framework.Configurations;

namespace Pixysoft.Weblications.Sango.Command.stage_pve
{
    partial class SangoStagePveHandler
    {
        public stagepve_video stagepve_video(string videocode)
        {
            stagepve_video response = ReflectionManager.CreatePojo<stagepve_video>();

            Entities.Log_Pvxbattlevideo log = LogPvxBattleVideoDao.getLog(videocode);
            PvxBattleHistory history = XmlManager.Deserialize<PvxBattleHistory>(log.Videodata);
            response.video = StageFacade.toVideo(log.Logcode, history);
            response.Succeed = true;
            return response;
        }
    }

    public interface stagepve_video : ISangoResponse
    {
        pve_war video { get;set;}
    }
}
